package kr.saeildamil.androidstudy.ch13;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class Ch13Main extends Activity {
	static final String TAG="Ch13Main";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch13_main);
	}
	
	public void mOnClick(View v){
		Intent intent = new Intent();
		Log.d(TAG, "mOnClick");
		switch(v.getId()){
		case R.id.main_ch13_prog:
			intent.setClass(this, ProgressBarTest.class);
			break;
		case R.id.main_ch13_seek:
			intent.setClass(this, SeekBakTest.class);
			break;
		case R.id.main_ch13_progtitle:
			intent.setClass(this, ProgressTitle2.class);
			break;
		case R.id.main_ch13_ratingbar:
			intent.setClass(this, RatingBarTest.class);
			break;
		case R.id.main_ch13_pickerdialog:
			intent.setClass(this, PickerDailogTest.class);
			break;
		case R.id.main_ch13_autocomplete:
			intent.setClass(this, AutoCompleteTest.class);
			break;
		case R.id.main_ch13_slidingdrawer:
			intent.setClass(this, SlidingDrawerTest.class);
			break;
		case R.id.main_ch13_switchtest:
			intent.setClass(this, SwitchTest.class);
			break;
		case R.id.main_ch13_spacetest:
			intent.setClass(this, SpaceTest.class);
			break;
		case R.id.main_ch13_listpopupwindow:
			intent.setClass(this, ListPopupWindowTest.class);
			break;
		}
		
		startActivity(intent);
	}
}
